.balance {
  height: calc(100vh - env(safe-area-inset-bottom));
  background-color: #f6f6f6;
  position: relative;

  .balance-header {
    width: 710rpx;
    height: 210rpx;
    background-color: #409EFF;
    /* 主蓝色背景 */
    margin: 22rpx auto;
    overflow: hidden;
    border-radius: 25rpx;
    color: #fff;
    box-sizing: border-box;
    padding-left: 30rpx;
    padding-top: 33rpx;
    position: relative;

    .balance-header-text {
      font-size: 30rpx;
    }

    .balance-header-value {
      margin-top: 40rpx;
      font-size: 42rpx;
    }

    .balance-detail {
      position: absolute;
      background-color: #337ecc;
      /* 稍深的蓝色，保持风格统一 */
      right: 0;
      top: 50%;
      transform: translateY(-50%);
      padding: 10rpx 20rpx;
      font-size: 25rpx;
      border-top-left-radius: 30rpx;
      border-bottom-left-radius: 30rpx;
    }
  }

  .recharge-panel {
    background-color: #fff;
    padding: 23rpx;
    width: 710rpx;
    box-sizing: border-box;
    margin: 0 auto;
    border-radius: 30rpx;
    padding-bottom: 1rpx;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;

    .recharge-panel-title {
      .left {
        font-size: 30rpx;
        color: #1e1b1c;
      }

      .right {
        font-size: 20rpx;
        color: #bcb9bd;
        margin-left: 10rpx;
      }
    }

    .recharge-panel-card {
      display: grid;
      grid-template-columns: 200rpx 200rpx 200rpx;
      margin-top: 40rpx;
      row-gap: 20rpx;
      justify-items: center;
      justify-content: space-between;

      .recharge-panel-card-item {
        width: 200rpx;
        height: 135rpx;
        border: 4rpx solid #e6e6e7;
        border-radius: 30rpx;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;

        .recharge-panel-card-item-tip {
          position: absolute;
          background-color: #409EFF;
          left: 0;
          top: -20rpx;
          font-size: 20rpx;
          color: #fff;
          padding: 5rpx 16rpx;
          border-top-left-radius: 20rpx;
          border-bottom-right-radius: 20rpx;
        }

        .recharge-panel-card-item__content {
          display: flex;
          align-items: baseline;
          color: #212121;

          .recharge-panel-card-item-value {
            font-size: 32rpx;
          }

          .recharge-panel-card-item-symbol {
            margin-left: 10rpx;
            font-size: 20rpx;
          }
        }
      }

      .recharge-panel-card-item-active {
        border-color: #409EFF;
        /* 激活时边框用主蓝色 */
        background-color: rgba(64, 158, 255, 0.1);
        /* 浅蓝背景增强激活视觉 */
      }
    }

    .recharge-method {
      font-size: 30rpx;
      margin: 30rpx 0;
    }
  }

  .recharge-method {
    background-color: #fff;
    width: 710rpx;
    box-sizing: border-box;
    margin: 0 auto;

    .recharge-method-row {
      display: flex;
      align-items: center;
      padding: 20rpx 20rpx;

      .recharge-method-row-text {
        margin-left: 20rpx;
        font-size: 30rpx;
      }
    }
  }

  .balance-bottom-recharge-button-region {
    position: absolute;
    bottom: 0;
    width: 100vw;
    height: 240rpx;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;

    .recharge-button {
      width: 700rpx;
      height: 90rpx;
      margin-top: 20rpx;
      background-color: #1989fa;
      color: #fff;
      display: flex;
      justify-content: center;
      align-items: center;
      border-radius: 50rpx;
    }
    .recharge-button-active {
      background-color: #0e6ecc; /* 背景色加深 */
      transform: scale(0.98); /* 轻微缩放，模拟按压凹陷 */
      opacity: 0.9; /* 透明度降低（可选） */
    }
  }
}